# encoding=utf-8
# author:梁子龙
from fastapi import APIRouter, FastAPI

from api.user_mgt import user_views


def router_v1():
    # 主路由
    root_router = APIRouter()
    root_router.include_router(user_views.router, tags=["用户管理"])
    return root_router


def init_routers(app: FastAPI):
    app.include_router(router_v1(), prefix="/api")
